Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-output models with bioimageio spec 0.5 #117

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

alanocallaghan
Copy link
Collaborator

@alanocallaghan alanocallaghan commented Dec 18, 2024

Add support for multi-output models using the bioimageio 0.5.x model spec.

We currently handle logits and embeddings by adding them to the measurements of output objects. We don't have a good way to name measurements yet; hopefully we can get axis names at some point in the future of the bioimageio spec. Detection classes are set as PathClass on the output objects.

Detection classes are supported with a NominalOrOrdinalDataDescr. If logits are present too, we try to match the names of outputs and logits. Otherwise, we default to "Class 1", "Logit 1" etc.

It's not totally clear how to handle multiple classes. "Class 1: Class A"?

Semantic segmentation is recognised as an output type, but support is not currently implemented (suggest this could be a future PR for now?).

Superset of #100

See qupath/qupath-bioimageio-spec#12

@alanocallaghan alanocallaghan requested review from petebankhead and removed request for petebankhead February 7, 2025 10:22
@alanocallaghan alanocallaghan marked this pull request as ready for review February 7, 2025 15:54
Copy link
Member

@petebankhead petebankhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried running it, but added a few comments, mostly related to clarity.

I don't really have an overview of the latest spec and instanseg developments, so I'll go with what you think is best. Will discover if I have any strong opinions after it's merged & I've played around with it some more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants